package com.stylefeng.guns.modular.flagglory.service.impl;

import com.stylefeng.guns.common.persistence.model.AnswerMirror;
import com.stylefeng.guns.common.persistence.dao.AnswerMirrorMapper;
import com.stylefeng.guns.modular.flagglory.dao.AnswerMirrorDao;
import com.stylefeng.guns.modular.flagglory.service.IAnswerMirrorService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author stylefeng123
 * @since 2018-02-07
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class AnswerMirrorServiceImpl extends ServiceImpl<AnswerMirrorMapper, AnswerMirror> implements IAnswerMirrorService {
    @Autowired
    private AnswerMirrorDao answerMirrorDao;
    public AnswerMirror getRandomAnswerMirror(Integer seasonId,Integer divisionId,Integer userId){
        return answerMirrorDao.selectRandomAnswerMirror(divisionId,seasonId,userId);
    }
}
